<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jspgou_sys/head.html"/>
<script type="text/javascript">
function getTableForm() {
	return document.getElementById('tableForm');
}
function optDelete() {
	if(Pn.checkedCount('ids')<=0) {
		alert("<@s.m 'error.checkRecord'/>");
		return;
	}
	if(!confirm("确定取消推荐?")) {
		return;
	}
	var f = getTableForm();
	f.action="o_delete.do";
	f.submit();
}
function optSaveOrder() {
	if(Pn.checkedCount('ids')<=0) {
		alert("<@s.m 'error.checkRecord'/>");
		return;
	}

	var f = getTableForm();
	f.action="o_order.do";
	f.submit();
}
</script>
</head>
<body>
<div class="body-box">
<div class="rhead">
	<div class="rpos"><@s.m "global.position"/>: <@s.m "shopTuijanproduct.function"/> - <@s.m "global.list"/></div>
	<!-- <form class="ropt">
		<input type="submit" value="<@s.m "global.add"/>" onclick="this.form.action='v_add.do';"/>
	</form> -->
	<form class="ropt">
		<a href="javascript:history.go(-1);"><@s.m "global.backToList"/></a>
	</form>
	<div class="clear"></div>
</div>
<form id="tableForm" method="post">

<input type="hidden" name="pageNo" value="${pageNo!}"/>
<input type="hidden" name="tid" value="${tid}"/>
<@p.table value=pagination;shopTuijanproduct,i,has_next><#rt/>
	<@p.column title="<input type='checkbox' onclick='Pn.checkbox(\"ids\",this.checked)'/>" width="20">
		<input type='checkbox' name='ids' value='${shopTuijanproduct.id}'/><#t/>
	</@p.column><#t/>
	<@p.column title="ID" align="center">${shopTuijanproduct.id}</@p.column><#t/>
	<@p.column code="shopTuijanproduct.name" align="center">${shopTuijanproduct.productid.name}</@p.column><#t/>
	<@p.column code="shopTuijanproduct.tuijian" align="center">${shopTuijanproduct.tuijianid.name}<input type="hidden" name="wids" value="${shopTuijanproduct.id}"/></@p.column><#t/>
	<@p.column code="shopTuijanproduct.tjorder" align="center"><input type="text" name="tjorder" value="${shopTuijanproduct.tjorder}" style="width:30px"/></@p.column><#t/>
	<@p.column code="global.operate" align="center">
		
		<a href="o_delete.do?ids=${shopTuijanproduct.id}&pageNo=${pageNo!}&tid=${tid}" onclick="if(!confirm('确定取消推荐?')) {return false;}"><@s.m "shopTuijian.cancletuijian"/></a><#t/>
	</@p.column><#t/>
</@p.table>
<div><input type="button" value="批量取消推荐" onclick="optDelete();"/>
&nbsp; <input type="button" value="<@s.m "global.saveOrder"/>" onclick="optSaveOrder();"/></div>
</form>
</div>
<#include "/common/alert_message.html"/>
</body>
</html>